﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RepairAdd.aspx.cs" Inherits="ProductRepair_RepairAdd" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="text-align: center;">
                <br />
                <div style="text-align: center; clear: both; height: 650px; width: 50%; border: 1px solid Black;
                    margin: 0 auto;">
                    <div style="height: 100%; width: 40%; float: left;">
                        <br />
                        序列号：<asp:TextBox ID="TextBox2" runat="server" Height="22px" Width="124px" 
                            AutoPostBack="True" ontextchanged="TextBox2_TextChanged"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="*"
                            ValidationGroup="VGroup1"></asp:RequiredFieldValidator><br />
                        <br />
                        <asp:ListBox ID="ListBox1" runat="server" Height="500px" Width="220px" 
                            SelectionMode="Multiple"></asp:ListBox>
                        <br />
                        共<asp:Label ID="Label1" runat="server" Text="0" ForeColor="Red"></asp:Label>个序列号
                    </div>
                    <div style="height: 100%; width: 18%; float: left;">
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" ValidationGroup="VGroup1" />
                        <br />
                        <br />
                        <asp:Button ID="Button2" runat="server" Text="删除" OnClick="Button2_Click" />
                        <br />
                        <br />
                        <asp:Button ID="Button3" runat="server" Text="清空" OnClick="Button3_Click" />
                        <br />
                        <br />
                        <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="粘帖" />
                        <br />
                    </div>
                    <div style="height: 100%; width: 40%; text-align:center; margin: 0 auto; float: left; border-left-style: solid; border-left-width: thin;">
                        <div style="Height:100%; width: 70%; text-align:left; margin: 0 auto;">
                        <br />
                        选择要返修的流程：<br />
                        <br />
                        <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="1" 
                        RepeatDirection="Horizontal" Height="250px" Width="100%">
                        </asp:CheckBoxList>
                        </div>
                    </div>
                </div>
                <div style="clear: both;">
                    <p align="center">
                        &nbsp;</p>
                    <p align="center">
                        返修原因与备注： 
                        <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button4" runat="server" Text="提 交" OnClick="Button4_Click" ValidationGroup="VGroup2" />
                        &nbsp;&nbsp;&nbsp;&nbsp;
                    </p>
                    <p align="center">
                        &nbsp;</p>
                    <br />
                    <input id="myVal" runat="server" type="hidden" />
                </div>
            </div>
        </ContentTemplate>
   </asp:UpdatePanel>
   <script type="text/javascript">
        function PasteData() {
            var str = clipboardData.getData('text');
            //document.getElementById("ctl00_ContentPlaceHolder1_myVal").value = str;
            document.getElementById("<%=myVal.ClientID%>").value = str;
        }
</script>
</asp:Content>

